package top.lyunz.lucky.hr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import top.lyunz.lucky.hr.service.configMajorService;
import top.lyunz.lucky.hr.tools.SimpleResult;

@Controller
public class configMajorController {
	@Autowired
	private configMajorService configMajorService;
	@RequestMapping("/configMajorGetAll")
	@ResponseBody
	public SimpleResult configMajorGetAll() {
		return new SimpleResult(configMajorService.configMajorGetAll());
	}
	@RequestMapping("/configMajorGetBymajorId/{id}")
	@ResponseBody
	public SimpleResult configMajorGetBymajorId(@PathVariable("id") int id) {
		return new SimpleResult(configMajorService.configMajorGetBymajorId(id));
	}
	@RequestMapping("/configMajorGetBymajorKindId/{id}")
	@ResponseBody
	public SimpleResult configMajorGetBymajorKindId(@PathVariable("id") int id) {
		return new SimpleResult(configMajorService.configMajorGetBymajorKindId(id));
	}
}
